package com.tyk.bookstore.front.system.model.result;


import com.tyk.bookstore.front.common.core.model.result.ResultEnum;

public enum AreaResultEnum implements ResultEnum {

    AREA_NOT_FOUND(4_01_01_01, "行政区域不存在"),
    AREA_NOT_LOWEST(4_01_01_02, "非最低级行政区域");

    private final String msg;
    private final Integer code;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    AreaResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
